<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>E-天下商旅</title>
<link href="${ctx}/resources/css/page_operat.css" rel="stylesheet" type="text/css">

</head>

<body>

<jsp:include page="../commons/header.jsp" >
	 <jsp:param name="currentMenu" value="menu2"/>
</jsp:include>



<div class="main_box">
<div class="main cf">

	<jsp:include page="../commons/left.jsp"></jsp:include>
	
	<div class="right">
		<div class="right_box">
			<div class="title"><span><a href="#">旅游咨询</a></span></div>
			<div class="content cf">
				<div class="write_message_box">
					<form action="${ctx}/tlMR/add" method="post"   >
                        <div>
							<label><i>* </i>咨询标题</label>
                            <input type="text" class="input" name="leaveTitle"  /><span></span>
                        </div>
                        <div>
							<label><i>* </i>咨询类型</label>
							<select id="" class="select" name="lType">
							    <c:forEach items="${leaveType }" var="type">
								<option  value="${type.id }"> ${type.typeName } </option>
								</c:forEach>
							</select>
                        </div>
                        <div>
							<label><i>* </i>咨询内容</label>
							<textarea class="input" name="leaveContent" ></textarea><span></span>
                        </div>
                        <div>
 							<label>&nbsp;</label>
							<input type="submit" class="submit btn_orange" value="提交留言" />
                        </div>
					</form>
				</div>
			</div>
		</div>
	</div>
		
</div>
</div>

<jsp:include page="/WEB-INF/jsp/commons/footer.jsp"></jsp:include>
<script src="${ctx}/resources/script/validate/jquery-1.4.min.js" type="text/javascript"></script>
<script src="${ctx}/resources/script/common.js"></script>
<script type="text/javascript" src="${ctx}/resources/script/validate/jquery.validate.js"></script>
<script type="text/javascript" src="${ctx}/resources/script/validate/jquery.metadata.js"></script>
<script type="text/javascript" src="${ctx}/resources/script/validate/additional-methods.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/resources/script/validate/messages_cn.js" charset="utf-8"></script>
<script type="text/javascript">
$(function(){
	$(function(){
		$("form").validate({
			rules:{
				leaveTitle:{
					required:true
				},
				leaveContent:{
					required:true
				}
			},
			errorPlacement : function(error, element) {
				error.appendTo(element.next("span"));
			}
		});
	 });
});
</script>
</body>
</html>

